package eerbaar.v2.gamebuilder.client.internal;

import eerbaar.v2.app.menu.IMenuItem;
import eerbaar.v2.gamebuilder.client.request.RequestProcessor;
import eerbaar.v2.gamebuilder.client.request.RequestType;
import eerbaar.v2.gamebuilder.client.request.Requester;

public class ResetGameMenu implements IMenuItem {

    @Override
    public void execute() {

        Requester r = Requester.getInstance();
        r.start(new RequestProcessor(), RequestType.RESET_GAME);
    }

    @Override
    public String getText() {
        return "Reset Game";
    }
}
